package com.guo.hui.service.dubbo.Impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.guo.hui.dao.blog.TpTimelineMapper;
import com.guo.hui.model.blog.TpTimeline;
import com.guo.hui.service.dubbo.DubboService;
import com.guo.hui.util.UtilJson;

public class DubboServiceImpl implements DubboService {

	@Autowired
	private TpTimelineMapper timelineDao;

	@Override
	public String queryTimeLine(String username) {
		Map<String, Object> map = new HashMap<>();
		map.put("username", username);
		List<TpTimeline> list = timelineDao.selectByMap(map);
		return UtilJson.toJson(list);
	}

}
